import vue from 'vue'
import vueroute from 'vue-router'

vue.use(vueroute)

import home from 'views/home/Home'
import classify from 'views/classify/Classify'
import my from 'views/my/My'
import shopping from 'views/shopping/Shopping'
import details from 'views/details/Details'
let routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: home
    },
    {
        path: '/classify',
        component: classify
    },
    {
        path: '/my',
        component: my
    },
    {
        path: '/shopping',
        component: shopping
    },
    {
        path: '/details/:iid',
        component: details,
    },
]

const router = new vueroute({
    routes,
    mode: 'history'
})

export default router